package com.studyv3.test.domain.bo;

import com.baomidou.mybatisplus.annotation.TableField;
import com.studyv3.common.annotation.Excel;
import com.studyv3.common.core.validate.AddGroup;
import com.studyv3.common.core.validate.EditGroup;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import java.time.LocalDateTime;


/**
 * lb_报废申请/审批业务对象 lb_apply_waste
 *
 * @author ruoyi
 * @date 2024-05-07
 */

@Data
public class ApplyWasteBo {

    /**
     *
     */
    @NotNull(message = "不能为空", groups = {EditGroup.class})
    private Integer id;

    /**
     * 申请人
     */
//    @NotBlank(message = "申请人不能为空")
    private String applicant;

    /**
     * 报废品名称
     */
    @NotBlank(message = "报废品名称不能为空", groups = {AddGroup.class, EditGroup.class})
    private String objectName;

    /**
     * 报废品数量
     */
    @NotBlank(message = "报废品数量不能为空", groups = {AddGroup.class, EditGroup.class})
    private String objectAmount;

    /**
     * 申请状态 0 通过 1 未审批 2 未通过
     */
    @NotNull(message = "申请状态 0 通过 1 未审批 2 未通过 不能为空", groups = {AddGroup.class, EditGroup.class})
    private Integer flag;

    /**
     * 0 未删除 1 删除
     */
//    @NotNull(message = "0 未删除 1 删除不能为空")
    private Integer deleted;

    /**
     * 报废物品所属批次
     */
    @NotNull(message = "报废物品所属批次不能为空", groups = {AddGroup.class, EditGroup.class})
    private Integer batchId;

    //    @NotNull(message = "报废物品ID不能为空",groups = {AddGroup.class,EditGroup.class})
    private Integer productsId;
    private String rejectAdvice;
    private LocalDateTime createTime;

    private LocalDateTime updateTime;

    @Excel(name = "物品数量")
    private Long productsNum;

    @Excel(name = "报废申请的数量")
    private Long productsUnqualified;

    @Excel(name = "领用申请中的数量")
    private Long productsApply;
}
